package top.chenfu.blog.service;

import top.chenfu.blog.entity.Article;

import java.util.List;

/**
 * @Auther chenfu
 * @2019/10/30 17:02
 * @Desc
 */
public interface ArticleService {

    List<Article> getArticleByState(int i, Long uid, Integer page, Integer count, String keywords);

    Integer getArticleCountByState(Integer state, Long uid, String keywords);

    Integer updateArticleState(List<Long> aids, Integer status);

    Integer restoreArticle(Long articleId);

    Article getArticleById(Long aid);

    Integer addNewArticle(Article article);
}
